package com.irs.irsforum.mapper;

import com.irs.irsforum.entity.Comment;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yihuili
 * @since 2020-01-18
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> getCommentListByPostId(@Param("postId") Long postId);

    Integer setComment(@Param("comment") Comment comment);

    Integer delComment(@Param("comment") Comment comment);

    Integer reply2comment(@Param("comment") Comment comment);

    String getReply(@Param("commentId") Long commentId);

}
